@charset "UTF-8";

@mixin col-6 {
    width: 50%;
    float: left;
}

@mixin col($width:50%) {
    width: $width;
    float: left;
}

@mixin col-sm($width:50%) {
    @if type_of($width) != number {
        @error "$width必须是一个数值类型，你输入的是:#{$width}.";
    }
    @if not unitless($width) {
        @if unit($width) != "%" {
            @error "$width应该是一个百分值,你输入的width:#{$width}.";
        }
    } @else {
        @warn "$width应该是一个百分值,你输入的width:#{$width}.";
        $width: percentage($width/100);
    }
    @media (min-width: 768px) {
        width: $width;
        float: left;
    }
}
